/**
 * Created by asus on 2017/3/7.
 */
requirejs.config({
    baseUrl:'./',
    paths:{
		jquery:'../../lib/jquery/jquery.min',
        bootstrap:'../../lib/bootstrap/js/bootstrap.min',
        template:'../../lib/artTemplate-3.0.1/template',
        jquerycookie:'../../lib/jquery-cookie/jquery.cookie',
        category:'../../js/category/category',
        util:'../../js/category/util',
        shopperClass:'../../js/category/shopperClass',
        shopFunction:'../../js/category/shopFunction',
        haitaozhekou:'../../js/haitaozhekou/haitaozhekou',
        jquerytoTop:'../../lib/jquery.toTop/jquery.toTop'
    },
    shim:{
        bootstrap:{
            deps:['jquery']
        },
        jquerytoTop:{
            deps:['jquery']
        }
    }

})
require(['jquery','bootstrap','jquerytoTop']);
(function(window){
    var pathname=window.location.pathname;
	
   //判断url里面是否含有当下路径，如果有做跳转；
	if(pathname.indexOf('/html/category/category.html')> -1 ){
		require(['category']);
	}else if(pathname.indexOf('/html/category/shopperClass.html')> -1) {
		require(['shopperClass']);
	}else if(pathname.indexOf('/html/category/shopFunction.html') > -1) {
		require(['shopFunction']);
	}else if(pathname.indexOf('/html/haitaozhekou/haitaozhekou.html') >-1) {
		require(['haitaozhekou']);
	}
}(window))
